Repository navigation
Conversation
The TS mirror matched an imagined UniFFI API: getOrderId now derives from the create tx inputs, fill and conclude inputs carry the account nonce and the tip block height, the HTLC output encodes a hex secret hash with an encodeLockForSeconds timelock blob and no spend pubkey, and extractHtlcSecret consumes the encodeOutpointSourceId blob. A parity test pins both directions. Claim and refund feed the locally captured lock tx bytes to the decode (persisted in the swap session), and real-mode swap locking is gated with a typed unsupported until an offer entry supplies the counterparty spend path, with the refund address taken from the wallet's own allocation.
The DEX ticket now derives the give and ask legs from the selected side and refuses non-limit order types with honest copy, dedicated i18n keys replace every wrong-key reuse, the fill runs a payout preview with an effective-price re-check against the book mid band inside the flows, the market header renders a typed unavailable state instead of the fixture row on a snapshot miss, the six dead M0 fixture seams leave the WalletData surface, the no-console secret guard scans src/trade and src/screens, and swap sessions persist the offer in a scalar form with the secret hash bytes rebuilt from hex on load.
finishTx and the HTLC broadcast apply the local-txid equality contract, the dead secret parameter and the unreachable HTLC-spend branch leave the multi-input signer, the fee and input estimates use the real HTLC output index, checkSlippage answers a typed result on a non-finite band, extractSecret sanity-checks the claim bytes and documents the strict-byte-size choice, the DEX conclude button gets a real label, the bridge quote refresh is debounced, the parseAmount object form documents the rational-atom exception, allUtxos and coinStatistics are trimmed per the D13 consume-or-trim rule, and the decisions log consolidates the M4 deviations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Milestone M4 (trade): DEX, atomic swap and bridge wired to real infrastructure.
Known follow-ups (tracked)